package com.bgs.controller;


import com.bgs.common.R;
import com.bgs.service.TrackService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 * 我的足迹 前端控制器
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@RestController
@RequestMapping("/bgs/track")
public class TrackController {
    @Autowired
    private TrackService trackService;

    @GetMapping("ThreeTrackRedis")
    @ApiOperation("足迹缓存用户浏览触发")
    public R ThreeTrackRedis(Integer beforeUserId, Integer orderDetailId) {
        return trackService.ThreeTrackRedis(beforeUserId, orderDetailId);
    }

    @GetMapping("/ThreeSelectTrackRedis")
    @ApiOperation("查询足迹列表根据日期查询")
    public R ThreeSelectTrackRedis(String startTime, String endTime, Integer beforeUserId) {
        return trackService.ThreeSelectTrackRedis(startTime, endTime, beforeUserId);
    }

}

